import http from "@/api";

import { PORT1 } from "@/api/config/servicePort";
 

/**
 * 获取 KM 的类别筛选列表
 * */ 
export const baseGtinLeftMenu = (data: Record<string, any>) =>
http.get(`${PORT1}/km/base-gtin/left-menu`, { ...data }, { loading: false });


/**
 * 获取 KM 高级搜索筛选项 
*/
export const baseGtinSearchItem = (data: Record<string, any>) =>
http.post(`${PORT1}/km/base-km/search-item`, { ...data }, { loading: false });


/**
 * 获取 KM 列表
*/
export const baseGtinList = (data: Record<string, any>) =>
http.post(`${PORT1}/km/base-km/list`, { ...data }, { loading: false });

 
/**
 * 获取 KM 列表表头
*/
export const baseGtinTableHeader = (data: Record<string, any>) =>
http.get(`${PORT1}/km/base-km/field`, { ...data }, { loading: false });
 